<template>
  <div class="bridge-item">
    <div class="title">
      {{ data.pedestalNum }}
    </div>
    <div class="item">
      生产线: <span>{{ data.beltlineName }}</span>
    </div>
    <div class="item">
      当前工序: <span>{{ data.procedureName }}</span>
    </div>
    <div class="item">
      开始时间: <span>{{ dayjs(data.createdAt).format('YYYY-MM-DD HH:mm:ss') }}</span>
    </div>
  </div>
</template>

<script>
import dayjs from "dayjs";
export default {
  name: "BridgeItem",
  props: {
    data: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  data() {
    return {
      dayjs
    };
  },
};
</script>

<style lang="scss" scoped>
.bridge-item {
  padding: 15px;
  border-bottom: 1px solid #f6f6f6;
  line-height: 1.5;
  font-size: 16px;
  font-weight: 600;
  .item {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 400;
    color: #999;
    span {
      color: #333;
    }
  }
}
</style>
